package com.ftg.midamall.admin.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 后台用户表
 * </p>
 *
 * @author qjw
 * @since 2023-10-20
 */
@TableName("ums_admin")
@ApiModel(value = "UmsAdmin对象", description = "后台用户表")
@Data
public class UmsAdmin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    private String password;

    @ApiModelProperty("头像")
    private String icon;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("备注信息")
    private String note;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("最后登录时间")
    private LocalDateTime loginTime;

    @ApiModelProperty("帐号启用状态：0->禁用；1->启用")
    private Integer status;

    @Override
    public String toString() {
        return "UmsAdmin{" +
            "id = " + id +
            ", username = " + username +
            ", password = " + password +
            ", icon = " + icon +
            ", email = " + email +
            ", nickName = " + nickName +
            ", note = " + note +
            ", createTime = " + createTime +
            ", loginTime = " + loginTime +
            ", status = " + status +
        "}";
    }
}
